package net.e4net.watrix.example.action;

import java.io.IOException;


import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.e4net.watrix.ActionResponse;
import net.e4net.watrix.WatrixContext;
import net.e4net.watrix.WatrixException;
import net.e4net.watrix.common.hao.RequestParser;
import net.e4net.watrix.runtime.AbstractAction;

public class JspActn extends AbstractAction {

	public ActionResponse execute(WatrixContext context, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, WatrixException {
		RequestParser parser = context.getRequestParser("default", request,	response);
		String error_test = parser.getParameter("error_test");
debug("error_test : " + error_test);		
		if ( error_test != null ) {
			"".substring(10);
		}
        return getActionResponse(context);
    }
}